/**
 * Header file for the main module.
 * @author Paweł Pawłowski <abdul-pablo@tlen.pl>
 * @author Leily Zafari
 */


#ifndef WATERING_H
#define WATERING_H

//timers
enum
{
	TIMER_MOISTURE_LEVEL_MEASUREMENT = 2000,
	TIMER_WATER_LEVEL_MEASUREMENT = 3000,
	TIMER_WATERING_CONTROL = 5000,
	TIMER_SENDER_S = 7500,
	TIMER_SENDER_T = 6000,
	TIMER_SENDER_V = 8000,
	TIMER_RESPONSE_S = 450,
	TIMER_RESPONSE_T = 750,
	TIMER_RESPONSE_V = 300
};

//nodes ids
enum {
	VALVE_NODE_ID = 26,
	GATEWAY_NODE_ID = 25,
	HUMIDITY_NODE_ID = 30,
	TANK_NODE_ID = 32
};

//watering control thresholds
enum {
	SOIL_HUMIDITY_THRESHOLD = 18,
	MIN_WATER_LEVEL = 3,
	WARN_WATER_LEVEL = 8 //slightly below half of maximal height of water column
};

#endif /* WATERING_H */
